package org.bluedream.core.module.entity.emp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bluedream.comm.base.OrgPageEntity;
import org.bluedream.core.module.entity.depItem.DepItem;

/**
 * @ClassName Emp
 * @Description TODO
 * @Author Administrator
 * @Data 2022/7/20 10:13
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_emp")
public class Emp extends OrgPageEntity<Emp> {
    private static final long serialVersionUID = -7781768710863830688L;

    private String code;
    private String name;
    private String depCode;
    @TableField(exist = false)
    private String depName;
    @TableField(exist = false)
    private DepItem depItem;

    public Emp(String id) {
        this.id = id;
    }

    public Emp(long limit , long pageSize) {
        this.limit = limit;
        this.page = pageSize;
    }
}